dataSource {
    pooled = true
    driverClassName = "org.h2.Driver"
    username = "sa"
    password = ""
}
hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
environments {
    development {
        dataSource {
            dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
            url = "jdbc:h2:mem:devDb;MVCC=TRUE"
        }
    }
    test {
        dataSource {
            dbCreate = "update"
            url = "jdbc:h2:mem:testDb;MVCC=TRUE"
        }
    }
    
    bees {
     dataSource {
            dbCreate = "update"
            url = "jdbc:cloudbees://vending"
            username = "bearprada"
            password = "888999"
        }
    
    }
    production {
       /* dataSource {
            dbCreate = "update"
            url = "jdbc:h2:prodDb;MVCC=TRUE"
            pooled = true
        }*/
		dataSource {
			 pooled = true
		 	 driverClassName = "com.mysql.jdbc.Driver"
//		     dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
//			dbCreate = "update"//FIXME
			  dbCreate = "create-drop"
			url = "jdbc:mysql://localhost/vending?autoReconnect=true&characterEncoding=UTF-8&useUnicode=yes"
			username = "root"
			password = "iasolution"
		}
    }
}
